When the appMenu is not available, for instance when no windows are
open (on the current workspace), we make its actor unreactive to
"hide" it from keynav. However the menu can still be triggered
erroneously when using the corresponding keyboard shortcut, so
add a check for the actor's reactivity there as well.
https://bugzilla.gnome.org/show_bug.cgi?id=676316
openAppMenu: function() {
let menu = this._appMenu.menu;
- if (Main.overview.visible || menu.isOpen)
- return;
+ if (!this._appMenu.actor.reactive || menu.isOpen)
+ return;
menu.open();
menu.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);